#include<iostream>
#include<string>
using namespace std;
int main(){
    string ins;
	getline(cin,ins);
	int sum=0;
	char c;
	for(int i=0;i<ins.length();i++){
		c=ins[i];
		if(c>='a'&&c<='z'){
			sum+=c-'a'+1;
		}else if(c>='A'&&c<='Z'){
			sum+=c-'A'+1;
		}
	}
	int n_ones=0, n_zeros=0;
	int yu;
	int shang;
	while(sum!=0){
		yu = sum%2;
		sum/=2;
		if(yu==1)
			n_ones++;
		else
			n_zeros++;
	}
	cout<<n_zeros<<" "<<n_ones;
	return 0;
}
